package 日期与时间;

import java.time.Duration;
import java.time.LocalDate;
import java.time.LocalDateTime;

public class Duration计算时间间隔 {
    public static void main(String[] args) {
        LocalDateTime bird=LocalDateTime.of(2003,4,13,12,5);
        LocalDateTime today=LocalDateTime.now();
        Duration q=Duration.between(bird,today);//后面减前面  发现date用不了
        System.out.println(q.toDays());
    }
}
